<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__cryptolite__lld__keygen__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__cryptolite.html">Cryptolite   (Cryptography)</a> &raquo; <a class="el" href="group__group__cryptolite__lld__keygen.html">Key Generation (ECP)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaee91155e560b89f3320e731762dc0e30"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cryptolite__lld__keygen__functions.html#gaee91155e560b89f3320e731762dc0e30">Cy_Cryptolite_ECC_MakeKeyPair</a> (CRYPTOLITE_Type *base, <a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html">cy_stc_cryptolite_context_ecdsa_t</a> *cfContext, <a class="el" href="group__group__cryptolite__enums.html#ga3b051ef176b1e1a9811acbae28eb2360">cy_en_cryptolite_ecc_curve_id_t</a> curveID, <a class="el" href="structcy__stc__cryptolite__ecc__key.html">cy_stc_cryptolite_ecc_key</a> *key, <a class="el" href="group__group__crypto__lld__asymmetric__functions.html#gafb50caadc8ad53e03011d523e49cf022">cy_func_get_random_data_t</a> GetRandomDataFunc, void *randomDataInfo)</td></tr>
<tr class="memdesc:gaee91155e560b89f3320e731762dc0e30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a Private &amp; Public Key pair.  <a href="#gaee91155e560b89f3320e731762dc0e30">More...</a><br /></td></tr>
<tr class="separator:gaee91155e560b89f3320e731762dc0e30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga520f15f6c25040ce13d5d15f46f90a95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cryptolite__lld__keygen__functions.html#ga520f15f6c25040ce13d5d15f46f90a95">Cy_Cryptolite_ECC_MakePrivateKey</a> (CRYPTOLITE_Type *base, <a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html">cy_stc_cryptolite_context_ecdsa_t</a> *cfContext, <a class="el" href="group__group__cryptolite__enums.html#ga3b051ef176b1e1a9811acbae28eb2360">cy_en_cryptolite_ecc_curve_id_t</a> curveID, const uint8_t *privateKey, <a class="el" href="group__group__crypto__lld__asymmetric__functions.html#gafb50caadc8ad53e03011d523e49cf022">cy_func_get_random_data_t</a> GetRandomDataFunc, void *randomDataInfo)</td></tr>
<tr class="memdesc:ga520f15f6c25040ce13d5d15f46f90a95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a Private key.  <a href="#ga520f15f6c25040ce13d5d15f46f90a95">More...</a><br /></td></tr>
<tr class="separator:ga520f15f6c25040ce13d5d15f46f90a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga53935b8f2dbbd884e5a633c73db0d2e0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cryptolite__lld__keygen__functions.html#ga53935b8f2dbbd884e5a633c73db0d2e0">Cy_Cryptolite_ECC_MakePublicKey</a> (CRYPTOLITE_Type *base, <a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html">cy_stc_cryptolite_context_ecdsa_t</a> *cfContext, <a class="el" href="group__group__cryptolite__enums.html#ga3b051ef176b1e1a9811acbae28eb2360">cy_en_cryptolite_ecc_curve_id_t</a> curveID, const uint8_t *privateKey, <a class="el" href="structcy__stc__cryptolite__ecc__key.html">cy_stc_cryptolite_ecc_key</a> *publicKey)</td></tr>
<tr class="memdesc:ga53935b8f2dbbd884e5a633c73db0d2e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a public key.  <a href="#ga53935b8f2dbbd884e5a633c73db0d2e0">More...</a><br /></td></tr>
<tr class="separator:ga53935b8f2dbbd884e5a633c73db0d2e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaee91155e560b89f3320e731762dc0e30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaee91155e560b89f3320e731762dc0e30">&#9670;&nbsp;</a></span>Cy_Cryptolite_ECC_MakeKeyPair()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a> Cy_Cryptolite_ECC_MakeKeyPair </td>
          <td>(</td>
          <td class="paramtype">CRYPTOLITE_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html">cy_stc_cryptolite_context_ecdsa_t</a> *&#160;</td>
          <td class="paramname"><em>cfContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__cryptolite__enums.html#ga3b051ef176b1e1a9811acbae28eb2360">cy_en_cryptolite_ecc_curve_id_t</a>&#160;</td>
          <td class="paramname"><em>curveID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__cryptolite__ecc__key.html">cy_stc_cryptolite_ecc_key</a> *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__crypto__lld__asymmetric__functions.html#gafb50caadc8ad53e03011d523e49cf022">cy_func_get_random_data_t</a>&#160;</td>
          <td class="paramname"><em>GetRandomDataFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>randomDataInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generate a Private &amp; Public Key pair. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Cryptolite instance.</td></tr>
    <tr><td class="paramname">cfContext</td><td>The pointer to the <a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html" title="Structure defines a ecdsa context. ">cy_stc_cryptolite_context_ecdsa_t</a>.</td></tr>
    <tr><td class="paramname">curveID</td><td>The ECC curve id.</td></tr>
    <tr><td class="paramname">key</td><td>The ECC key. See <a class="el" href="structcy__stc__cryptolite__ecc__key.html">cy_stc_cryptolite_ecc_key</a>.</td></tr>
    <tr><td class="paramname">GetRandomDataFunc</td><td>See <a class="el" href="group__group__crypto__lld__asymmetric__functions.html#gafb50caadc8ad53e03011d523e49cf022">cy_func_get_random_data_t</a>.</td></tr>
    <tr><td class="paramname">randomDataInfo</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code. See <a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a>. </dd></dl>

</div>
</div>
<a id="ga520f15f6c25040ce13d5d15f46f90a95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga520f15f6c25040ce13d5d15f46f90a95">&#9670;&nbsp;</a></span>Cy_Cryptolite_ECC_MakePrivateKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a> Cy_Cryptolite_ECC_MakePrivateKey </td>
          <td>(</td>
          <td class="paramtype">CRYPTOLITE_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html">cy_stc_cryptolite_context_ecdsa_t</a> *&#160;</td>
          <td class="paramname"><em>cfContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__cryptolite__enums.html#ga3b051ef176b1e1a9811acbae28eb2360">cy_en_cryptolite_ecc_curve_id_t</a>&#160;</td>
          <td class="paramname"><em>curveID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>privateKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__crypto__lld__asymmetric__functions.html#gafb50caadc8ad53e03011d523e49cf022">cy_func_get_random_data_t</a>&#160;</td>
          <td class="paramname"><em>GetRandomDataFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>randomDataInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generate a Private key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Cryptolite instance.</td></tr>
    <tr><td class="paramname">cfContext</td><td>The pointer to the <a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html" title="Structure defines a ecdsa context. ">cy_stc_cryptolite_context_ecdsa_t</a>.</td></tr>
    <tr><td class="paramname">curveID</td><td>The ECC curve id.</td></tr>
    <tr><td class="paramname">privateKey</td><td>The pointer to the ECC private key.</td></tr>
    <tr><td class="paramname">GetRandomDataFunc</td><td>See <a class="el" href="group__group__crypto__lld__asymmetric__functions.html#gafb50caadc8ad53e03011d523e49cf022">cy_func_get_random_data_t</a>.</td></tr>
    <tr><td class="paramname">randomDataInfo</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code. See <a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a>. </dd></dl>

</div>
</div>
<a id="ga53935b8f2dbbd884e5a633c73db0d2e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga53935b8f2dbbd884e5a633c73db0d2e0">&#9670;&nbsp;</a></span>Cy_Cryptolite_ECC_MakePublicKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a> Cy_Cryptolite_ECC_MakePublicKey </td>
          <td>(</td>
          <td class="paramtype">CRYPTOLITE_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html">cy_stc_cryptolite_context_ecdsa_t</a> *&#160;</td>
          <td class="paramname"><em>cfContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__cryptolite__enums.html#ga3b051ef176b1e1a9811acbae28eb2360">cy_en_cryptolite_ecc_curve_id_t</a>&#160;</td>
          <td class="paramname"><em>curveID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>privateKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__cryptolite__ecc__key.html">cy_stc_cryptolite_ecc_key</a> *&#160;</td>
          <td class="paramname"><em>publicKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generate a public key. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Cryptolite instance.</td></tr>
    <tr><td class="paramname">cfContext</td><td>The pointer to the <a class="el" href="structcy__stc__cryptolite__context__ecdsa__t.html" title="Structure defines a ecdsa context. ">cy_stc_cryptolite_context_ecdsa_t</a>.</td></tr>
    <tr><td class="paramname">curveID</td><td>The ECC curve id.</td></tr>
    <tr><td class="paramname">privateKey</td><td>The pointer to the ECC private key.</td></tr>
    <tr><td class="paramname">publicKey</td><td>The generated public ECC key. See <a class="el" href="structcy__stc__cryptolite__ecc__key.html">cy_stc_cryptolite_ecc_key</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code. See <a class="el" href="group__group__cryptolite__enums.html#gafaeb3f2fb88784222220aee907e36710">cy_en_cryptolite_status_t</a>. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
